import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

export const routes = [
  {
    // 只带有code  无 tid，只负责查结果，无法在结果页继续投诉
    path: '/result/:code',
    name: 'complaintResult',
    component: () => import('../views/ComplaintResult.vue'),
  },
  {
    path: '/pdf',
    name: 'PDF_PAGE',
    component: () => import('@views/pdfViewer/index.vue'),
  },
  { path: '/404', name: 'pageNotFound', component: () => import('@views/auth/404.vue') },
  { path: '*', redirect: '/404' },
]

const router = new VueRouter({
  routes,
})
export default router
